package ModelLayer;


/**
 * a class product, that hold information about a given product, with the attributes; ID, Description, Purchaseprice, Price and Name
 * 
 * @author Team Black 
 * @version 1.0
 */
public class Product
{
    // instance variables - replace the example below with your own
    private int id;
    private String description;
    private double purchasePrice;
    private double price;
    private String name;
    
    
    public Product(int _id, String _description, double _purchasePrice, double _price, String _name)
    {
        id = _id;
        description = _description;
        purchasePrice = _purchasePrice;
        price = _price;
        name = _name;
    }
    /**
     * mutator and accessor for the fields; ID, Description, Purchaseprice, Price and Name
     */
    public void setId(int _id)
    {
        id = _id;
    }
    public int getId()
    {
        return id;
    }
    public void setDescription(String _description)
    {
        description = _description;
    }
    public String getDescription()
    {
        return description;
    }
    public void setpurchasePrice(double _purchasePrice)
    {
        purchasePrice = _purchasePrice;
    }
    public double getPurchasePrice()
    {
        return purchasePrice;
    }
    public void setPrice(double _price)
    {
        price = _price;
    }
    public double getPrice()
    {
        return price;
    }
    public void setName(String _name)
    {
        name = _name;
    }
    public String getName()
    {
        return name;
    }


}
